Skip to content

job: add is_branch and is_tag functions#27

Open
bergzand wants to merge 1 commit intomurdock-ng:mainfrom
bergzand:pr/refactor_is_ref
Open

job: add is_branch and is_tag functions#27
bergzand wants to merge 1 commit intomurdock-ng:mainfrom
bergzand:pr/refactor_is_ref

Conversation

@bergzand
Copy link
Contributor

Simple refactor to expose an is_tag and is_branch to the job class and replace the relevant conditionals in most places to use these functions

@bergzand bergzand force-pushed the pr/refactor_is_ref branch 2 times, most recently from 3463b0b to b9e98a5 Compare November 25, 2022 12:46
@bergzand
Copy link
Contributor Author

I don't know why the style check is suddenly complaining about existing code, maybe mypy lost track of the job.ref is not None that is now in the new functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant